<extend name="Public/base"/>

<block name="body">
	<div class="am-cf am-u-md-12 header-title">
		<h2>扩展字段</h2>
	</div>

    <div class="am-cf am-u-md-12 am-btn-group am-margin-top">
        <a class="am-btn am-btn-primary" href="{:U('User/addfield?extend_id='.$extend_id)}">新 增</a>
    </div>

	<!-- 数据列表 -->
	<div class="am-cf am-u-md-12 am-margin-top">
	<table class="am-table am-table-striped">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">编号</th>
		<th class="">字段</th>
		<th class="">名称</th>
		<th class="">数据类型</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
			<td>{$vo.id} </td>
			<td>{$vo.name}</td>
			<td><a data-id="{$vo.id}" href="{:U('User/editfield?id='.$vo['id'])}">{$vo.name}</a></td>
			<td><span>{:get_attribute_type($vo['type'])}</span></td>
			<td><a href="{:U('User/editfield?id='.$vo['id'])}">编辑</a>
				<a class="confirm ajax-get" href="{:U('User/delfield?id='.$vo['id'])}">删除</a>
                </td>
		</tr>
		</volist>
		<else/>
		<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
    </div>
    <div class="am-cf am-u-md-12">
        {$_page}
    </div>
    
</block>

<block name="script">
</block>